<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>
      demo
    </title>
    <script 
        type="text/javascript"
        src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js"
        data-appid="APPID"
        data-redirecturi="REDIRECTURI"
        charset="utf-8">

    </script>
    <script language="javascript">
      function GetList(){
        var i=window.javatojs.getSize();

        for(var n=0;n<i;n++){
          var jsdata= window.javatojs.getObject(n);//拿到activity里面的属性javadata
          window.javatojs.printStr("test");
        }
      }

      function OnKeyUp() {
        var keycode = window.javatojs.getKeyCode();
        window.javatojs.printStr(keycode);
      }
    </script>
  </head>

  <body>
    <table width="400" align="center">
      <tr>
        <td>
          <p>
            &nbsp;
          </p>
          <p>
            <table width="400" align="center">
              <div id="output" >
                test
              </div>
              <input 
                  type="submit"
                  value="buttons"
                  onclick="document.getElementById('output').innerHTML=window.javatojs.Callfunction()"/>
              <br>

            </p>
          </td>
        </tr>
      </table>
      <span id="qqLoginBtn">
      </span>
      <script type="text/javascript">
        QC.Login({
          btnId:"qqLoginBtn"	//插入按钮的节点id
          });
        </script>

        <script type="text/javascript">
          (function(){
            var p = {
              url:location.href,
              showcount:'1',/*是否显示分享总数,显示：'1'，不显示：'0' */
              desc:'',/*默认分享理由(可选)*/
              summary:'',/*分享摘要(可选)*/
              title:'',/*分享标题(可选)*/
              site:'',/*分享来源 如：腾讯网(可选)*/
              pics:'', /*分享图片的路径(可选)*/
              style:'203',
              width:98,
              height:22
              };
              var s = [];
              for(var i in p){
                s.push(i + '=' + encodeURIComponent(p[i]||''));
              }
              document.write(['<a version="1.0" class="qzOpenerDiv" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?',s.join('&'),'" target="_blank">分享</a>'].join(''));
              })();
            </script>
            <script src="http://qzonestyle.gtimg.cn/qzone/app/qzlike/qzopensl.js#jsdate=20111201" charset="utf-8">
            </script>
          </body>


        </html>
